#include"echo_server.hpp"
#include<memory>
#include"daemon.hpp"
int main()
{
    CONVERT_FILE_LOG();
    Daemon(false,false);
    parse parse_mode;
    std::unique_ptr<server> server_uptr=std::make_unique<server>([&parse_mode](std::string& mesg)->std::string{
        return parse_mode.entry(mesg);
    });
    //初始化服务器
    server_uptr->InitServer();
    server_uptr->start();

    return 0;
}